package cn.dengta.webapp.ai.model;

import cn.dengta.common.model.ValueProxy;
import cn.dengta.common.model.ValueProxyImpl;
import lombok.Getter;

@Getter
public enum AiMediaFinishMode implements ValueProxyImpl<AiMediaFinishMode, Integer> {
	NONE(0, "初始值"),
	NORMAL(1, "正常结束"),
	LESS_BALANCE(2, "余额不足"),
	HEAT_TIMEOUT(3, "心跳超时"),
	CHANNEL_CLOSE(4, "通道关闭"),
	FORCE(5, "强制结束"),
	;
	public Integer value;
	private final ValueProxy<AiMediaFinishMode, Integer> proxy;

	AiMediaFinishMode(Integer value, String label) {
		this.value = value;
		this.proxy = new ValueProxy<>(this, value, label);
	}
}
